#pragma once

#include <string>

namespace cybertron {
	class Util
	{
	public:
		static int64_t time_now();
		static int64_t time_now_ms();
		static int get_current_pid();

		static bool valid_dir(const std::string &dir);
		static std::string format_datetime(int64_t time_sec);
		//static int64_t parse_datetime(const std::string &str);

		static std::string format_datetime_ms(int64_t time_ms);

		static std::string replace(const std::string &in, const std::string &from, const std::string &to);
	};
}